$(function(){
	// 查询
	changeupdatepage();
	function changeupdatepage(){
		var historyId = utilModule.getQueryString("pdId");
		if(historyId!=null){
			var param="pdId="+historyId;
			function callBack(data){
				console.log(data)
				$(".description").text(data.description);
				$(".diagnosticRecord").text(data.diagnosticRecord);
				$(".doctorName").text(data.doctorName);
				$(".diagnosticDate").text(data.diagnosticDate);
				var html="";
				if(!data.diagnosticFiles){
					html+='<p>无</p>';
				}
				if(utilModule.checkUndefined(data.diagnosticFiles) != "") {
					var arr = data.diagnosticFiles.split(",");
					
					for(i in arr){
						html+='<p><img src="'+arr[i]+'" data-preview-src="" data-preview-group="1" /></p>';
					}
				}
			
				
				$(".picture").append(html);
			}
			electronicArchivesMdule.getpage(param, callBack);
		}
	};
	
	mui.previewImage();
});
